<?php
require_once("page.php");

//$eng->INFO = TRUE;


//------------------------------------------------------------
// Set some values into the template engine
//------------------------------------------------------------
$eng->assign("PageTitle", "RadTemplate Engine");
$eng->assign("PageSubTitle", "Example 5c - Iteration using ForEach");
$eng->assign("newsUrl", "templates/news.txt");

//------------------------------------------------------------
// Declare the Top Five Reasone Array
//------------------------------------------------------------
$data = array("Fast", "Flexible", "Extensible", "Powerful", "Free");
$list = new Collection($data);

$eng->assign("ListMessage", "Top Five Reasons to use RadTemplate (Iterate)");
$eng->assign("LoveYou", "Anh Yeu EM Nhieu lam.");

//------------------------------------------------------------
// Put Array into values Collection
//------------------------------------------------------------
$eng->assign("TopFive", $list);

//------------------------------------------------------------
// Load the template and Generate Ouput
//------------------------------------------------------------
$eng->show("tpl/test05c.html");
?>